package com.hcss.core.common.mailmgt.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcss.core.common.mailmgt.dao.MailSetDao;
import com.hcss.core.common.mailmgt.model.SystemMailModel;


/** 
 * @ClassName: SystemSetting 
 * @Description: TODO 系统设置
 * @author lvfang
 * @date 2013-4-16 下午2:56:00 
 *  
 */
@Service("mailSetService")
public class MailSetService {
	@Autowired
	private MailSetDao mailSetDao;

	/** 
    * @Title: findSysModel 
    * @Description: TODO 查询初始化设置
    * @return
    * @throws Exception
    * @throws 
    */ 
    public SystemMailModel findSysModel() throws Exception {
    	return mailSetDao.findSysModel();
    }
	/**
	 * 系统设置
	 * @param systemModel 输入参数 
	 * @return 提示信息
	 * @throws Exception
	 */
	
	public int setInfo(SystemMailModel systemModel) throws Exception{
		return mailSetDao.setInfo(systemModel);
	}
	/**
	 * @Title: updateMailTemplate
	 * <p>修改邮件模板<p>
	 * @param systemModel
	 * @return
	 * @return: int
	 */
	public int updateMailTemplate(SystemMailModel systemModel){
		return mailSetDao.updateMailTemplate(systemModel);
	}
}
